package com.yaoayao.mall.item.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

/**
 * @author: peiyao
 * @date: 2024/4/14 3:10
 * @description:
 */
@FeignClient(name = "service-item")
public interface ItemFeignClient {

    //数据汇总
    @GetMapping("/api/item/getItem/{skuId}")
    public Map<String,Object> getItem(@PathVariable Long skuId);
}
